home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10063 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  910 b 

  1. Path: sparc13.ncu.edu.tw!s3032089
  2. From: s3032089@sparc13.ncu.edu.tw (Alexander PeaceLand)
  3. Newsgroups: comp.lang.c
  4. Subject: How to read a STRING from file?
  5. Date: Fri, 15 Mar 1996 06:53:22 GMT
  6. Organization: NCU ME
  7. Message-ID: <s3032089.13.314913E2@sparc13.ncu.edu.tw>
  8. NNTP-Posting-Host: @140.115.65.133
  9.  
  10. How could I read a real string from the file?
  11. I used to read string by fscanf(), but it seems not work when the string 
  12. I want is like "This is a book" that with space within it.
  13. Is there any function or easy way to read sentence from file?
  14.  
  15. o----------------------------------------------------------o
  16. |   (''')                                                  |
  17. |  ( 0 0 )    E-mail address : s3032089@sparc13.ncu.edu.tw |
  18. |   -----                                                  |
  19. |   |||||                      - Alexander PeaceLand -     |
  20. o----------------------------------------------------------o
  21.